package com.hrvsr.downloader.mock;

import com.hrvsr.common.Request;
import com.hrvsr.common.Response;
import com.hrvsr.downloader.Downloader;
import com.hrvsr.session.Session;

public class MockDownloader implements Downloader {

	@Override
	public Response download(final Request request, Session session) {
		return new Response() {
			
			@Override
			public int getStatusCode() {
				return 200;
			}
			
			@Override
			public Request getRequest() {
				return request;
			}
			
			@Override
			public String getContentType() {
				return "HTML";
			}
			
			@Override
			public byte[] getContent() {
				return "Hello, world".getBytes();
			}
		};
	}

}
